## Here we test how Solaris specific flags are dumped.

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readobj -S %t.o | FileCheck %s

# CHECK:      Name: .os.flags.low
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [ (0x100000)
# CHECK-NEXT:   SHF_SUNW_NODISCARD (0x100000)
# CHECK-NEXT: ]
# CHECK:      Name: .os.flags.high
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [ (0xFE00000)
# CHECK-NEXT: ]
# CHECK:      Name: .os.flags.mask
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [ (0xFF00000)
# CHECK-NEXT:   SHF_SUNW_NODISCARD (0x100000)
# CHECK-NEXT: ]

--- !ELF
FileHeader:
  Class: ELFCLASS64
  Data:  ELFDATA2LSB
  OSABI: ELFOSABI_SOLARIS
  Type:  ET_REL
Sections:
  - Name:    .os.flags.low
    Type:    SHT_PROGBITS
    ShFlags: 0x00100000
  - Name:    .os.flags.high
    Type:    SHT_PROGBITS
    ShFlags: 0x0FE00000
  - Name:    .os.flags.mask
    Type:    SHT_PROGBITS
    ShFlags: 0x0FF00000
